<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>回文数</title>
	</head>
	<body>
		<script>			
		    function show(num){
		    	var aa=num.toString();
			    var bb=aa.split('');
			    var cc=bb.reverse();
			    var dd=cc.join('');
			    var ee=Number(dd);
//			    console.log('d',dd);
			    alert(num==ee);
//			    console.log('a',aa);
//			    console.log('c',cc);
		    }
		    var demo = 11111 ;
		    show(demo);
		</script>
	</body>
</html>
